package junit;

import com.google.gson.Gson;
import com.item1024.utils.WebUtils;

import java.util.HashMap;
import java.util.Map;

/**
 * @author 阳十三
 * @email wdful165177@gmail.com
 * @blog http://www.item1024.com
 * @date 2017/8/10
 */

public class javaTest {
    public static void main(String[] args) {
        Map<String,String> map = new HashMap<>();
        map.put("username","admin");
        map.put("password","admin");
        map.put("rememberMe","true");
        String str = new WebUtils().okHttp("http://47.92.1.152:8080/api/authenticate",new Gson().toJson(map));
        System.out.println(str);
    }
}
